package com.capsulode.excel.header;

import com.capsulode.excel.exception.CellTypeNotExpectException;
import com.capsulode.excel.exception.ConversionFailException;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CellStyle;

/**
 * WritableHeader
 *
 * @author terrason
 */
public interface WritableHeader<R> {
    int getIndex();

    CellStyle getStyle();

    void setStyle(CellStyle style);

    void write(Cell cell, R obj) throws ConversionFailException, CellTypeNotExpectException;
}
